<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:text name="title"/></title>
<link href="<%=request.getContextPath()%>/stage/css/inside.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/stage/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/stage/js/jquery.cookie.js"></script>
<script type="text/JavaScript">
<!--
function login(){ 
	$("#mess").html('');
	var username=$("#username").val();
	var pass=$("#pass").val();
	var mycode=$("#mycode").val();
	if(mycode.length<2){
		$("#mess").html('验证码错误!');
		return false;
	}
	if(username.length<1||pass.length<1){
		$("#mess").html('用户名或密码错误!');
		return false;
	}
	
    var server ="<%=request.getContextPath()%>/login.action?mycode="+mycode;
    document.loginForm.action=server;
    return true;
}

function myreset(){ 
	$("#username").val('');
	$("#pass").val('');
	$("#mycode").val('');  
	$("#mess").html('');
}

//-->
</script>
</head>

<body
	onload="MM_preloadImages('<%=request.getContextPath()%>/stage/images/menu0_01.jpg','<%=request.getContextPath()%>/stage/images/menu0_02.jpg','<%=request.getContextPath()%>/stage/images/menu0_03.jpg','<%=request.getContextPath()%>/stage/images/menu0_04.jpg','<%=request.getContextPath()%>/stage/images/menu0_05.jpg','<%=request.getContextPath()%>/stage/images/menu0_06.jpg','<%=request.getContextPath()%>/stage/images/menu0_07.jpg')">
<div class="mainbody">
<%@ include file="head1.jsp"%>
 <div class="intermediate">
    <h1>当前位置：首页&nbsp;&gt;&nbsp;<b><FONT COLOR="#FFCC66">用户登录</FONT></b></h1>
    <%@ include file="left_unlog.jsp"%>
     <div class="right">
	      <h4><img src="<%=request.getContextPath()%>/stage/images/denglu/denglu_07.jpg" /></h4>
		  <div class="right_nr">
		  <form name="loginForm" method="post" onsubmit="return login()">
		  <ul>
		     <li><img src="<%=request.getContextPath()%>/stage/images/denglu/denglu_15.jpg" width="56" height="14" /></li>
			 <li class="biaot">用户名：<span style="color:red;">* </span><input name="userBo.userName" id="username" type="text" class="sous1"/>&nbsp;<span id="mess" style="color:yellow"><s:property value="tips"/></span>
			 </li>
			 <li class="biaot">密　码：<span style="color:red;">* </span><input name="userBo.password" id="pass" type="password" class="sous1"/></li>
			 <li style="height:50px;">验证码：<span style="color:red;">* </span><input type="text" id="mycode" name="mycode" class="sous1"/>
			 <img height="30" style="margin-bottom:-8px" src="<%=request.getContextPath()%>/kaptcha.jpg" /></li>
			 <li style="width:200px; padding-left:50px;">
			   <label>
			   <input type="image" src="<%=request.getContextPath()%>/stage/images/common/submit.gif" />
			   </label>
			   <label>
			   <input  type="image" src="<%=request.getContextPath()%>/stage/images/common/reset.gif" onclick="myreset()"/>
			   </label>
			 </li>
		  </ul>
		  </form>
	   </div>
	 </div>
 </div>
<%@ include file="foot.jsp"%>
</div>
</body>
</html>
